/// @arg message
/// @arg backgrround
/// @arg [response]
function NewTextBox(){
	var _obj;
	if(instance_exists(oText)) _obj = oTextQueued;else _obj = oText;
	with(instance_create_layer(0, 0, "Instances", _obj))
	{
		messageText = argument[0];
		if(instance_exists(other)) originInstance = other.id; else originInstance = noone;
		if(argument_count > 1) background = argument[1]; else background = 1;
		if(argument_count > 2)
		{
			response = argument[2];
			for (var i = 0; i < array_length(response); i++)
			{
				var _markerPosition = string_pos("：",response[i]);//中文冒号
				responseScript[i] = string_copy(response[i], 1, _markerPosition - 1);
				responseScript[i] = real(responseScript[i]);
				response[i] = string_delete(response[i], 1, _markerPosition);
			}
		}
		else
		{
			response = [-1];
			responseScript = [-1];
		}
	}
	
	//玩家动作暂停
	with(oPlayer)
	{
		if(state != PlayerStateLocked)
		{
			lastState = state;
			state = PlayerStateLocked;
		}
	}
}